package yf.mall.vo.down;


import lombok.Data;
import java.util.Date;
import com.alibaba.excel.annotation.*;
import java.io.Serializable;



import yf.mall.entity.AppProductMaterialEntity;
import yf.mall.vo.AppProductMaterialVo;

                    
/**
 * 商品素材关联表实体
 * 表名 app_product_material
 *
 *
 *
 * @date Sun Jul 30 09:00:08 CST 2023
 */
@Data
public class AppProductMaterialDown implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //主键，
            @ExcelProperty("主键，")
            private Long id;
        
                        //素材ID
            @ExcelProperty("素材ID")
            private Long materialId;
        
                        //商品ID
            @ExcelProperty("商品ID")
            private Long pid;
        
                        //备注
            @ExcelProperty("备注")
            private String remark;
        
                        //创建时间
            @ExcelProperty("创建时间")
            private Date createTime;
        
    
    public AppProductMaterialDown() {

    }

    public AppProductMaterialDown(AppProductMaterialVo vo) {
        AppProductMaterialEntity entity = vo.getEntity();
                                    this.setId(entity.getId());
            
                                    this.setMaterialId(entity.getMaterialId());
            
                                    this.setPid(entity.getPid());
            
                                    this.setRemark(entity.getRemark());
            
                                    this.setCreateTime(entity.getCreateTime());
            
            }


}
